package cn.tedu.spring.auto;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestEmployee {
    /**
     * 演示bean自动装配
     */
    @Test
    public void autoTest(){
        ApplicationContext context=new ClassPathXmlApplicationContext("bean-auto.xml");
        Employee employee=context.getBean("employee",Employee.class);
        System.out.println(employee);
    }
}
